package com.patterns.mediator;

/**
 * 具体同事类
 * @author fwj
 * @date 2021/4/21 16:49
 **/
public class ConcreteColleague2 extends Colleague{

    public void receive() {
        System.out.println("具体同事类2收到请求。");
    }
    public void send(Mediator mediator) {
        System.out.println("具体同事类2发出请求。");
        mediator.relay(this); //请中介者转发
    }

}
